package com.huawei.appmarket.support.widget.title.spinner;

import android.app.Activity;
import android.view.View;
import com.huawei.appgallery.foundation.ui.framework.titleframe.bean.BaseTitleBean;
import com.huawei.appgallery.foundation.ui.framework.titleframe.bean.SpinnerBaseTitleBean;
import com.huawei.appmarket.framework.widget.spinner.TitleSpinner;
import com.huawei.appmarket.support.widget.title.spinner.bean.SpinnerTitleBean;
import o.azb;
import o.cjf;
import o.djb;
import o.dky.d;
import o.dky.h;
import o.dky.i;
import o.ewi;

public class SpinnerTitle extends cjf {
    private ewi ˏ;

    public SpinnerTitle(Activity activity, BaseTitleBean baseTitleBean) {
        super(activity, baseTitleBean);
    }

    public View ʽ() {
        View inflate = this.ˊ.inflate(i.ʿ, null);
        inflate.setPadding(0, 0, azb.ˏ(this.ˋ), 0);
        TitleSpinner titleSpinner = (TitleSpinner) inflate.findViewById(h.ˑ);
        titleSpinner.setPopupBackgroundResource(d.ʼ);
        if (this.ˎ instanceof SpinnerTitleBean) {
            this.ˏ = new ewi(this.ˋ, titleSpinner, (SpinnerTitleBean) this.ˎ);
            if (this.ˏ.ˎ()) {
                return inflate;
            }
        }
        return null;
    }

    public void ʻ() {
        if ((this.ˎ instanceof SpinnerBaseTitleBean) && this.ˏ != null) {
            this.ˏ.ॱ((SpinnerTitleBean) this.ˎ);
        }
    }

    public String ᐝ() {
        return "only_spinner_title";
    }

    public void ॱ(djb o_djb) {
        super.ॱ(o_djb);
        this.ˏ.ॱ(o_djb);
    }
}
